* Fill in your directory here
global dir .

** Replication code for "Migration and Resilience during a Global Crisis".
** This code will run code from $do, pull source data from $data, 
** and will output figures to $figures and tables to $tables.

*** Define folders (these must already exist)
cd "${dir}"
global do "${dir}/DoFiles"
global data "${dir}/Data"
global figures "${dir}/Figures"
global tables "${dir}/Tables"

*** Create Main Paper Tables and Figures

* G2G Data: Figure 3
do "${do}/G2G_Main_Analysis.do"

* NPL Data: Figures 1, 4, 6A
do "${do}/NPL_Main_Analysis.do"

* NLS Data: Figures 5A, 6B; Table 3
do "${do}/NLS_Main_Analysis.do"

* URB Data: Figures 5B, 6C; Table 2
do "${do}/URB_Main_Analysis.do"

*** Create Appendix Tables and Figures

* G2G Regressions: Tables S5, S6, S7
do "${do}/Appendix_G2G_S5.do"
do "${do}/Appendix_G2G_S6_S7.do"

* NPL, NLS, URB Regressions: Tables S8, S9, S10, S11, S12
do "${do}/Appendix_Regressions_S8_S9_S10_S11.do"
do "${do}/Appendix_Regressions_S12.do"

* Honest DiD Figures: Figures S1, S2, S3, S4, S5, S6, S7, S8
do "${do}/Appendix_HonestDiD_Figures.do"
